package org.gap.wizards.utils;

import java.util.Random;

public enum Dice {
	D8(8), D6(6), D4(4), D2(2);
	private static final Random random = new Random();
	private final int sides;

	Dice(int sides) {
		this.sides = sides;
	}

	public int roll() {
		return random.nextInt(sides) + 1;
	}
}
